home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 6876 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  4.0 KB

  1. Path: keats.ugrad.cs.ubc.ca!not-for-mail
  2. From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
  3. Newsgroups: comp.lang.misc,comp.lang.perl.misc,comp.lang.tcl,comp.lang.c,comp.lang.java
  4. Subject: Re: Relative Speed of Perl vs. Tcl vs. C
  5. Followup-To: alt.flame
  6. Date: 15 Feb 1996 14:43:02 -0800
  7. Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
  8. Message-ID: <4g0ctmINNrho@keats.ugrad.cs.ubc.ca>
  9. References: <4e3a2u$eoa@wcap.centerline.com> <JTV2J.96Feb11120004@brunelleschi.cs.virginia.edu> <4fln4s$mgq@csnews.cs.colorado.edu> <JTV2J.96Feb12141346@mamba.cs.virginia.edu>
  10. NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
  11.  
  12. In article <JTV2J.96Feb12141346@mamba.cs.virginia.edu>,
  13. John Viega <rust@Virginia.EDU> wrote:
  14. >Tom Christiansen writes:
  15. > | In comp.lang.perl.misc, rust@Virginia.EDU writes:
  16. > | :There is no need to sacrifice power for ease of use and learnability.
  17. > | :There are a handful of languages at least as powerful as Perl, and
  18. > | :several times more readable.
  19. > | 
  20. > | Name them.
  21. >
  22. >Python, Icon, and ML all come to the top of my head.  Of course, since
  23. >all languages have their strengths and weaknesses, it depends where
  24. >you want your power.  As a general purpose more powerful language that
  25. >is also easier to use than Perl, I'd also suggest any member of the
  26. >Modula/Oberon family.  
  27.  
  28. Give me a break! These are systems programming languages intended for compiling
  29. into machine language, not scripting languages. You can't even compare them to
  30. Perl. You might as well tell people to code in C instead of Perl.
  31.  
  32. Do you have any idea what it would take to code a regular expression matching
  33. module in Oberon from scratch compared to just writing /^[0-9]*/? 
  34.  
  35. Modula and Oberon support things like explicit datatypes, complex type
  36. construction, pointers, etc. All the kind of concepts that a script writer
  37. should not need to worry about.
  38.  
  39. In interpreted languages like Perl, you don't have to worry whether $myvariable
  40. is a floating-point number, a string or an integer, and you don't have to worry
  41. about where it is stored.
  42.  
  43. I think you are way off base even making such meaningless comparisons, which
  44. casts a doubt on your credibility. That cute .sig blurb about polymorphism
  45. won't easily redeem you!
  46.  
  47. >However, let us not overlook that both power and readability are a bit
  48. >subjective.  What is obvious code to you might not be obfuscated to
  49. >me, and vice-versa.
  50.  
  51. >But it still can say something about the language, especially if
  52. >people complain in droves about how much the language detracts from
  53. >readability, like people do with Perl.  I don't see many complaints
  54. >about how easy it is to write hard to read Python programs.
  55.  
  56. That's because if you get your tabbing wrong, your block nesting won't be
  57. understood by the damn thing. You couldn't write a Python program that looks
  58. like a labyrinth, such as the well-known example from obfuscated C programming
  59. which also generates a random labyrinth on standard output. That doesn't mean
  60. that all programmers of languages like Perl or C are going to conspire to write
  61. programs that look like labyrinths, name their variables with meaningless
  62. names, or pull nasty tricks such as taking advantage of the little-known
  63. commutatitivity of the a[b] array designator by writing expressions like
  64. 5["abcdefg"]
  65.  
  66. I think your droning about Python is getting a little obnoxious, considering
  67. you aren't even posting to newsgroups that have anything to do with Python.
  68.  
  69. Why is this cross-posted to comp.lang.c? Do you seriuosly think that most
  70. people reading comp.lang.java or comp.lang.perl give a damn?
  71.  
  72. Python is still in fairly early stages, whereas Perl is a mature language that
  73. has been around for years. It was designed to help automate some UNIX system
  74. administration tasks. I can find it on just about any UNIX installation that
  75. has internet access. There is an accumulating body of software based in
  76. Perl---such as majordomo, and that little "psnup" utility. Maybe you should
  77. consider that before blindly suggesting that people drop everything and move
  78. over to Python or Modula 2.
  79.  
  80. -- 
  81.  
  82.